package com.jt.www.admin.stats.controller;

import com.jt.www.admin.stats.service.YnInsuredService;
import com.jt.www.model.reps.ResultDTO;
import com.jt.www.model.vo.stats.yunnan.YnInsuredParamVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

/**
 * @author admin_ltf
 * @create 2019-05-15 11:29
 */
@Api(value = "云南统计", tags = {"YN-STATS-API"}, description = "云南统计")
@RestController
@RequestMapping(value = "/stats/yn")
public class YnInsuredController {

    public static final Logger log = LoggerFactory.getLogger(YnInsuredController.class);
    @Autowired
    YnInsuredService ynInsuredService;

    /**
     * 云南专用投保情况汇报表   需要合计
     *
     * @param vo
     * @return
     */
    @ApiOperation(value = "云南专用投保情况汇报表", notes = "云南专用投保情况汇报表", httpMethod = "POST")
    @PostMapping(value = "/getYNIsuredInfo")
    public ResultDTO<Map<String, Object>> searchYNIsuredInfo(@RequestBody(required = false) YnInsuredParamVO vo) {

        ResultDTO resultMap = ynInsuredService.searchYNIsuredInfo(vo);

        return resultMap;
    }

    /**
     * 云南专用案件情况汇报表   不需要合计
     * @param vo
     * @return
     */
//    @ApiOperation(value = "云南专用案件情况汇报表",notes = "云南专用案件情况汇报表",httpMethod = "POST")
//    @PostMapping(value = "/getYNCaseInfo")
//    public ResultDTO<List<YnCaseResultVO>> searchYNCaseInfo(@RequestBody(required = false) YnCaseParamVO vo) {
//
//        ResultDTO resultMap = ynInsuredService.searchYNCaseInfo(vo);
//
//        return resultMap;
//    }
}
